﻿@using RuoVea.ExConfig
@using RuoVea.Tool.Model
@{
    var host = Appsettings.app("BaseFile:HostUrl");
    (Catorgry catorgry, List<MenuModel> menus) = IndexMenus.MenusFor(url);
}
<div class="layui-card">
    <div class="layui-card-header">
        <h3>@catorgry.Name</h3>
    </div>
    <div class="layui-card-body">
        <ul class="list-box">
            @foreach (var item in menus)
            {
                <li class="list">
                    <a href="@(host+item.Link)">@item.Name</a>
                </li>
            }
        </ul>
    </div>
</div>

@code {
    [Parameter]
    public string? url { get; set; }
}
